package com.iceland.server.config;

import com.iceland.common.util.ResourceReader;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.MarkerFactory;

@Slf4j
public class Environment {
    static ProxyConfig proxyConfig;
    static {
        log.info(MarkerFactory.getMarker(Environment.class.getTypeName()),"加载proxy.yml配置");
        proxyConfig = ResourceReader.loadYml(ProxyConfig.class, "proxy");
    }

    public static ProxyConfig getProxyConfig() {
        return proxyConfig;
    }
}
